pmd: pmd.o
	gcc pmd.o -o pmd -lpthread
pmd.o: pmd.c
	gcc -c pmd.c
pm.exe: pm.exe.o utilities.o
	gcc pm.exe.o utilities.o -o pm.exe
pm.exe.o: pm.exe.c
	gcc -c pm.exe.c
utilities.o: utilities.c
	gcc -c utilities.c
all:
	make pmd pm.exe
install:
	mkdir ~/.postmore
	echo PM_CFG="~/.postmore" | cat >>~/.profile
	echo PM_LIST="~/.postmore/listrc" | cat >>~/.profile 
	cp pm.exe /usr/bin
	cp pmd /usr/bin
clean:
	rm pmd pmd.o pm.exe pm.exe.o utilities.o
